#ifndef LOCKABLESTORAGE_H
#define LOCKABLESTORAGE_H

#include <stdint.h>

class LockableStorage {
public:
	virtual ~LockableStorage() {}
	virtual bool lock() = 0;
	virtual void unlock() = 0;
	virtual bool read(uint32_t addr, void *data, uint16_t dataSize) = 0;
	virtual bool write(uint32_t addr, const void *data, uint16_t dataSize) = 0;
};


#endif
